package com.perfma.xtest.cmd;

import org.voovan.http.message.Request;
import org.voovan.http.message.Response;

import java.io.Serializable;

/**
 * HttpRequest,HttpResponse
 */
public class HttpInfo implements Serializable {

    private static final long serialVersionUID = -6944622972243618128L;
    private Request request;
    private Response response;
    private String errorInfo;

    public Request getRequest() {
        return request;
    }

    public void setRequest(Request request) {
        this.request = request;
    }

    public Response getResponse() {
        return response;
    }

    public void setResponse(Response response) {
        this.response = response;
    }

    public String getErrorInfo() {
        return errorInfo;
    }

    public void setErrorInfo(String errorInfo) {
        this.errorInfo = errorInfo;
    }

    @Override
    public String toString() {
        return "HttpInfo{" +
                "request=" + request +
                ", response=" + response +
                '}';
    }
}
